package cn.wolfcode.trip.base.service.impl;

import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.mapper.StrategyCommentMapper;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.service.IStrategyCommentService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StrategyCommentServiceServiceImpl implements IStrategyCommentService {
    @Autowired
    private StrategyCommentMapper strategyCommentMapper;
    //全部的数据做分页
    public PageInfo<StrategyComment> getListStrategyComment(QueryObject qo) {
        return new PageInfo(strategyCommentMapper.queryForlist(qo));
    }

    public StrategyComment getStrategyComment(Long id) {
        return strategyCommentMapper.selectByPrimaryKey(id) ;
    }
}
